RealSign
RealSign[x] gives -1, 0 or 1 depending on whether x is negative, zero or positive.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.
RealSign[x] gives -1, 0 or 1 depending on whether x is negative, zero or positive.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.